home *** CD-ROM | disk | FTP | other *** search
- Path: magnus.acs.ohio-state.edu!csn!ub!newserve!rebecca!rpi!not-for-mail
- From: smeyers@netcom.com (Scott Meyers)
- Newsgroups: comp.lang.c++,comp.lang.c++.moderated
- Subject: More Effective C++
- Date: 5 Feb 1996 17:36:30 -0000
- Organization: NETCOM On-line Communication Services (408 261-4700 guest)
- Sender: cppmods@netlab.cs.rpi.edu
- Approved: Dietmar.Kuehl@uni-konstanz.de
- Message-ID: <4f5f6u$bhe@netlab.cs.rpi.edu>
- NNTP-Posting-Host: netlab.cs.rpi.edu
- X-Original-Date: Mon, 5 Feb 1996 17:17:54 GMT
-
- This posting announces the introduction of my new book, "More Effective
- C++: 35 New Ways to Improve Your Programs and Designs." The first part
- of the posting gives some information about the book itself, the second
- part explains how you can win an autographed copy. If you want to skip
- the propaganda and jump straight to how you can win a copy, search for
- "WINNING AN AUTOGRAPHED COPY" now.
-
- THE BOOK
-
- Vital Statistics:
-
- More Effective C++: 35 New Ways to Improve Your Programs and Designs
- by Scott Meyers
- Addison-Wesley Professional Computing Series
- ISBN 0-201-63371-X * Paperback * 336 pages * 1996
- About US$30
-
- More Effective C++ complements the material in my other C++ book,
- "Effective C++," but More Effective C++ is not a second edition of
- Effective C++, and you don't need to have read Effective C++ to
- understand More Effective C++. The two books cover independent
- material, and Effective C++ will continue to be available.
-
- What does More Effective C++ cover? I put it this way in the book's
- Introduction:
-
- The material in this book is divided into 35 Items. Each Item summarizes
- the accumulated wisdom of the C++ programming community on a particular
- topic. Most Items take the form of guidelines, and the explanation
- accompanying each guideline describes why the guideline exists, what
- happens if you fail to follow it, and under what conditions it may make
- sense to violate the guideline anyway.
-
- Items fall into several categories. Some concern particular language
- features, especially newer features with which you may have little
- experience. For example, Items 9 through 15 are devoted to exceptions.
- Other Items explain how to combine the features of the language to
- achieve higher-level goals. Items 25 through 31, for instance, describe
- how to constrain the number or placement of objects, how to create
- functions that act "virtual" on the type of more than one object, how to
- create "smart pointers," and more. Still other Items address broader
- topics; Items 16 through 24 focus on efficiency. No matter what the
- topic of a particular Item, each takes a no-nonsense approach to the
- subject. In More Effective C++, you learn how to *use* C++ more
- effectively. The descriptions of language features that make up the bulk
- of most C++ texts are in this book mere background information.
-
- Here is the table of contents for More Effective C++:
-
- Acknowledgments
- Introduction
- Basics [4 Items]
- Operators [4 Items]
- Exceptions [7 Items]
- Efficiency [9 Items]
- Techniques [7 Items]
- Miscellany [4 Items]
- Recommended Reading
- An auto_ptr Implementation
- General Index
- Index of Example Classes, Functions, and Templates
-
- For more information, point your WWW browser to
- http://www.aw.com/cp/mec++.html. There you'll find a detailed table of
- contents and the complete text of the following sections of the book:
-
- Introduction
- Item 5: Be wary of user-defined conversion functions
- Item 9: Use destructors to prevent resource leaks
- Item 10: Prevent resource leaks in constructors
- Item 33: Make non-leaf classes abstract
- Recommended Reading
- An auto_ptr Implementation
-
- You'll also find a photo of the cover of the book, the descriptive
- information from the back of the book, my photo and bio, etc. And of
- course you'll find information on how you can order the book if you
- can't wait for it to appear at your local bookstore :-). (If it's not
- there already, it should appear soon, at least in the United States.)
-
- If you don't have a WWW browser, you can get the same information via
- anonymous FTP from ftp.aw.com in the directory cp/mec++.
-
-
- WINNING AN AUTOGRAPHED COPY
-
- Much of what I know about C++ I learned from the Usenix C++ newsgroups,
- and Addison-Wesley (my publisher) and I want to express our thanks to
- the participants of those newsgroups by giving away some autographed
- copies of More Effective C++. My original plan was to offer a free book
- to the first person from each country who wrote me asking for one, but
- there are a lot of countries in the world, and though the folks at
- Addison-Wesley are generous, they're not that generous. Besides, I have
- to pay for postage myself when I mail the books out :-).
-
- I've therefore decided to give a free autographed copy of More Effective
- C++ to the first person from each time zone who writes asking for one.
- More specifically:
- - I'll send an autographed copy of More Effective C++ to the first
- person from each of the world's time zones who sends me A LETTER
- asking for one. ELECTRONIC MAIL DOES NOT COUNT. I'll judge
- who's first by looking at postmarks. In case of ties, I'll choose
- a winner at random or I'll send out multiple copies of the book
- (see below).
- - When I say "time zone," I don't really mean "time zone," because real
- time zones are too complicated. Instead, I'll divide the world into
- 24 15-degree slices of longitude, and each such slice is, by
- my definition, a time zone. That's how I'll figure out who's in
- which time zone. To determine the time zone you're in, I'll look
- at the address you ask me to send the book to.
- - In cases of ambiguity, inconsistency, or any other way in which the
- rules above may be lacking, I will make a decision which is
- arbitrary, capricious, and final :-).
-
- In short, if you want a shot at a free book, immediately send me a
- letter at the address at the end of this posting. The sooner you get
- your letter in the mail, the better your chances of winning a book. DO
- NOT SEND ELECTRONIC MAIL. DO NOT SEND FAXES. DO NOT MAKE PHONE CALLS.
- Just put pen/pencil/crayon/printer/whatever to paper and send me a letter.
-
- As fate would have it, Addison-Wesley will donate 30 books for this
- venture. Since there are only 24 time zones, that means I have 6 books
- to play with. I reserve the right to give them to anybody I feel like.
- You can improve your chances of my feeling like giving you one by making
- a compelling case in your letter. You already have a head start if you
- come from a country that didn't exist in 1990, because I have a soft
- spot for new countries. You also have a head start if you live in
- Madagascar, because I have a soft spot for lemurs. Ditto for
- Antarctica, because I have a soft spot for Emperor Penguins. Admitting
- that you work for Microsoft will reduce your chances considerably, even
- if you live in Madagascar, commute to Antarctica, and nurse injured
- lemurs and penguins back to health :-).
-
- Good luck. I look forward to hearing from you, and I hope you like
- More Effective C++.
-
- Scott
-
- ----------------------------------------------------------------------------
- Scott Meyers, Ph.D. Email: smeyers@netcom.com
- Software Development Consultant Voice: 503/638-6028
- 3051 SW Turner Road Fax: 503/638-6614
- West Linn, OR 97068
-
-
- [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
- [ Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm ]
- [ Moderation policy: http://www.connobj.com/cpp/guide.htm ]
- [ Comments? mailto:c++-request@netlab.cs.rpi.edu ]
-